package cn.edu.zjgsu.ito.service;
import java.util.List;

import cn.edu.zjgsu.ito.model.CourseModel;

import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Record;
public class MajorNameService extends Service {
	public List<Record> allMajorName() {
		try {
			List<Record> list=Db.find("select * from student_info group by majorName");
			System.out.println(list);
			return list;
		} catch (Exception e) {
			e.printStackTrace();
			return null;
		}

	}
}
